package com.example.makerspace.service.impl;

import com.example.makerspace.dto.PageRequest;
import com.example.makerspace.dto.Result;
import com.example.makerspace.manager.NewsManager;
import com.example.makerspace.service.IntroductionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class IntroductionServiceImpl implements IntroductionService {

    @Resource
    private NewsManager newsManager;

    @Override
    public Result newsList(PageRequest pageRequest) {
        return newsManager.newsListByTime(pageRequest);
    }
}
